<template>
  <div>
    <h2>学校名称：{{name | mySlice}}</h2>
    <h2>学校地址：{{address}}</h2>
    <button @click="sayHello">点我说hello</button>
  </div>
</template>

<script>
export default {
  name: "MySchool",
  data(){
    return{
      name:"幸福中学12138",
      address:"重庆"
    }
  },
  methods:{
    sayHello(){
      this.hello()
    }
  }
}
</script>

<style scoped>

</style>
